package com.qunar.support.util;

import java.sql.Connection;
import java.sql.DriverManager;

import org.apache.log4j.Logger;

public class DBHelper {
	static Logger logger = Logger.getLogger(DBHelper.class);
	private static Connection conn;

	static {
		try {
			Class.forName("org.logicalcobwebs.proxool.ProxoolDriver");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public static Connection getConnection() {
		try {
			conn = DriverManager.getConnection("proxool.support0");
//			Class.forName("com.mysql.jdbc.Driver");
//			conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/support0","root","manager");
		} catch (Exception e) {
			e.printStackTrace();
		}
		return conn;
	}
}
